package com.googlecode.jascii;

import java.util.ArrayList;


/**
 * @author Kim Lee
 */ 
public class TextStyle {
	//╘ ═ ╧ ╛  ╞ ═ ╪ ╡ 
	private   String[] topLayout    = {"┌","─","┬","┐"};
	private   String[] midLayout   = {"├","─","┼","┤","│","┬","┴"} ;//{"│"," "," ","│"," "} ;	
	//private   String[] midBLayout   = {"╞","═","╪","╡","│"};
	private   String[] bottomLayout = {"└","─","┴","┘"};
	
	public static final int LEFT =0;
	public static final int COLBETWEEN =1;
	public static final int ROWBETWEEN =4;
	public static final int AROSS =2;
	public static final int RIGHT =3;
	public static final int DOWNSTART=5;
	public static final int UPCLOSE = 6;
	
	public static final int TOPLAYOUT = 1;
	public static final int MIDLAYOUT = 2;
	public static final int BOTTOMLAYOUT = 3;
	
	public String getLayout(int layout,int place)
	{
		if(MIDLAYOUT !=layout && ROWBETWEEN == place) return "";
		if(TOPLAYOUT == layout) return getTopLayout( place );
		if(MIDLAYOUT == layout) return getMidLayout( place);
		if(BOTTOMLAYOUT == layout) return getBottomLayout( place);
		return null;
	}
	public String getTopLayout(int place)
	{
		return topLayout[place];
	}
	public String getMidLayout(int place)
	{
		return midLayout[place];
	}
	public String getBottomLayout(int place)
	{
		return bottomLayout[place];
	}
	
	/**
	 * @param bottomLayout The bottomLayout to set.
	 */
	public void setBottomLayout(String[] bottomLayout) {
		this.bottomLayout = bottomLayout;
	}
	/**
	 * @param midLayout The midLayout to set.
	 */
	public void setMidLayout(String[] midLayout) {
		this.midLayout = midLayout;
	}
	/**
	 * @param topLayout The topLayout to set.
	 */
	public void setTopLayout(String[] topLayout) {
		this.topLayout = topLayout;
	}
	/**
	 * 
	 */
	public TextStyle() {
		super();
		// TODO Auto-generated constructor stub
	}
    
	public static void main(String[] args) {
	}
}
